package com.java.interfaceLearn;

/**
 * @author Lenl
 * @create 2021-05-31 15:52
 *
 * 面试题
 */
public class TestQuestion {
    public static void main(String[] args) {
        ComparableCircle c1=new ComparableCircle(3.4);
        ComparableCircle c2=new ComparableCircle(3.2);
        int compare=c1.compareTo(c2);
        if(compare>0){
            System.out.println("c1大");
        }else if(compare<0){
            System.out.println("c2大");
        }else{
            System.out.println("一样大");
        }
    }
}

